/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_bitacora_maquinaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression bm_id_bitacora_maquina;
	public final BooleanExpression bm_recauda;
	public final BooleanExpression bm_repone;
	public final BooleanExpression bm_reparacion;
	public final DateExpression bm_fecha_visita;
	public final BooleanExpression bm_visita;
	public final StringExpression bm_observaciones;
	
	public Tbv_bitacora_maquinaDetachedCriteria() {
		super(orm.Tbv_bitacora_maquina.class, orm.Tbv_bitacora_maquinaCriteria.class);
		bm_id_bitacora_maquina = new IntegerExpression("bm_id_bitacora_maquina", this.getDetachedCriteria());
		bm_recauda = new BooleanExpression("bm_recauda", this.getDetachedCriteria());
		bm_repone = new BooleanExpression("bm_repone", this.getDetachedCriteria());
		bm_reparacion = new BooleanExpression("bm_reparacion", this.getDetachedCriteria());
		bm_fecha_visita = new DateExpression("bm_fecha_visita", this.getDetachedCriteria());
		bm_visita = new BooleanExpression("bm_visita", this.getDetachedCriteria());
		bm_observaciones = new StringExpression("bm_observaciones", this.getDetachedCriteria());
	}
	
	public Tbv_bitacora_maquinaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_bitacora_maquinaCriteria.class);
		bm_id_bitacora_maquina = new IntegerExpression("bm_id_bitacora_maquina", this.getDetachedCriteria());
		bm_recauda = new BooleanExpression("bm_recauda", this.getDetachedCriteria());
		bm_repone = new BooleanExpression("bm_repone", this.getDetachedCriteria());
		bm_reparacion = new BooleanExpression("bm_reparacion", this.getDetachedCriteria());
		bm_fecha_visita = new DateExpression("bm_fecha_visita", this.getDetachedCriteria());
		bm_visita = new BooleanExpression("bm_visita", this.getDetachedCriteria());
		bm_observaciones = new StringExpression("bm_observaciones", this.getDetachedCriteria());
	}
	
	public Tbv_maquinaDetachedCriteria createTbv_maquinama_id_maquinaCriteria() {
		return new Tbv_maquinaDetachedCriteria(createCriteria("tbv_maquinama_id_maquina"));
	}
	
	public Tbv_bitacora_reparacionDetachedCriteria createTbv_bitacora_reparacionCriteria() {
		return new Tbv_bitacora_reparacionDetachedCriteria(createCriteria("ORM_Tbv_bitacora_reparacion"));
	}
	
	public Tbv_facturacionDetachedCriteria createTbv_facturacionCriteria() {
		return new Tbv_facturacionDetachedCriteria(createCriteria("ORM_Tbv_facturacion"));
	}
	
	public Tbv_contadorDetachedCriteria createTbv_contadorCriteria() {
		return new Tbv_contadorDetachedCriteria(createCriteria("ORM_Tbv_contador"));
	}
	
	public Tbv_bitacora_abastecimientoDetachedCriteria createTbv_bitacora_abastecimientoCriteria() {
		return new Tbv_bitacora_abastecimientoDetachedCriteria(createCriteria("ORM_Tbv_bitacora_abastecimiento"));
	}
	
	public Tbv_bitacora_recaudacionDetachedCriteria createTbv_bitacora_recaudacionCriteria() {
		return new Tbv_bitacora_recaudacionDetachedCriteria(createCriteria("ORM_Tbv_bitacora_recaudacion"));
	}
	
	public Tbv_bitacora_maquina uniqueTbv_bitacora_maquina(PersistentSession session) {
		return (Tbv_bitacora_maquina) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_bitacora_maquina[] listTbv_bitacora_maquina(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_bitacora_maquina[]) list.toArray(new Tbv_bitacora_maquina[list.size()]);
	}
}

